//package com.ruoyi.demo.controller;
//
//
//import com.ruoyi.common.core.controller.BaseController;
//import com.ruoyi.common.core.domain.AjaxResult;
//import com.ruoyi.demo.service.*;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.*;
///**
// * @author ljw
// * @description
// * @date 2023/9/7 16:47
// */
//
//@RequestMapping("monitorPoint/demo")
//@RestController
//public class MonitorPointDemoController extends BaseController {
//    @Autowired
//    JyDemoService jyService;
//    @Autowired
//    MonitorPointDemoService monitorPointService;
//
//    /**
//     * 查询各煤矿，及其分类下的监控点
//     */
//    @GetMapping(" coalMinesAndMonitors")
//    public AjaxResult selectCoalMinesAndMonitors(String monitorName) {
//        HashMap<String, Object> resMap = new HashMap<>();
//        HashMap<String, Integer> map = monitorPointService.selectTotalMonitorCountAndOnlineMonitorCount();
//        resMap.put("coalMineList", monitorPointService.selectCoalMinesWithMonitors(monitorName));
//        resMap.put("totalMonitorCount", map.get("totalMonitorCount"));
//        resMap.put("onlineMonitorCount", map.get("onlineMonitorCount"));
//        return success(resMap);
//    }
//
//}
